package com.jala.demo.service;

import com.jala.cm.PageResult;
import com.jala.demo.model.Demo;
import com.jala.demo.req.PageDemoReq;

import java.util.List;

/**
 * Created by Administrator on 2018/3/15.
 */
public interface DemoService {

    /**
     * 获取分页列表
     * @param
     * @return
     */
    PageResult<Demo> pageDemoList(PageDemoReq req);


    Demo queryByPrimaryKey(Integer id);

    List<Demo> listDemo(Integer id);

    int addDemo(Demo demo);

    int editDemo(Demo demo);

    int deleteDemo(Integer id);
}
